/**
 * Created by Francis.LW on 2017/10/20.
 *
 * 组织关联角色服务接口
 */
import {postRequest, getRequest} from '@/common/request'
import {urls} from './url'

const organization2roleApi = urls.organization2role


function listRoleNoSelectd(oid, success, complete) {
  postRequest(organization2roleApi.listRoleNoSelectd + oid, {}, {}, success, complete)
}


function listRoleSelectd(oids, success, complete) {
  postRequest(organization2roleApi.listRoleSelectd, {}, oids, success, complete)
}

function updateOrganizationRole(param, success, complete) {
  postRequest(organization2roleApi.updateOrganizationRole, {}, param, success, complete)
}


export default {
  listRoleNoSelectd,
  listRoleSelectd,
  updateOrganizationRole
}
